/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package desarrollosoft.ghce.entidades;

import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author ariel
 */
@Entity
@Table(name = "PLANTILLAS_ESTUDIOS_LABORATORIO")
@DiscriminatorValue("PL")
public class PlantillaEstudioLaboratorio extends Plantilla {
    
    @OneToMany(mappedBy="plantillaEstudioLaboratorio")
    private List<Componente> listaComponentes;
    
    public PlantillaEstudioLaboratorio() {
        super();
    }

    public List<Componente> getListaComponentes() {
        return listaComponentes;
    }

    public void setListaComponentes(List<Componente> listaComponentes) {
        this.listaComponentes = listaComponentes;
    }

    @Override
    public String getTipo() {
        return "Estudio Laboratorio";
    }
    
}
